/**
* Rishi functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Rishi
*/
$rishi_theme_data = wp_get_theme();
if (!defined('RISHI_VERSION')) define('RISHI_VERSION', $rishi_theme_data->get('Version'));
// Theme directory constant.
defined('RISHI_DIR__') || define('RISHI_DIR__', get_template_directory());
// Customizer Builder assets directory.
defined('RISHI_CUSTOMIZER_BUILDER_DIR__') || define('RISHI_CUSTOMIZER_BUILDER_DIR__', RISHI_DIR__ . '/customizer-builder');
/**
* Query if Elementor Page Builder plugin is activated
*/
function rishi_is_elementor_activated()
{
return class_exists('Elementor\\Plugin') ? true : false;
}
/**
* Query if Rishi pro is activated or not
* @return BOOLEAN
*/
function rishi_is_pro_activated(){
return class_exists('Rishi\Rishi_Pro') ? true : false;
}
/**
* Custom Functions.
*/
require get_template_directory() . '/inc/custom-functions.php';
/**
* Standalone Functions.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-functions.php';
/**
* Widgets
*/
require get_template_directory() . '/inc/widgets.php';
/**
* Notices
*/
require get_template_directory() . '/inc/notice/notice.php';
/**
* Elementor – Header, Footer & Blocks Template compatibility
*/
if (defined('HFE_VER')) {
require get_template_directory() . '/inc/hfe-compatibility.php';
}
/**
* Load Jetpack compatibility file.
*/
if (defined('JETPACK__VERSION')) {
require get_template_directory() . '/inc/jetpack.php';
}
/**
* Add theme compatibility function for woocommerce if active
*/
if (rishi_is_elementor_activated()) {
require get_template_directory() . '/inc/elementor-compatibility.php';
}
/**
* Add theme compatibility function for woocommerce if active
*/
if (rishi_is_woocommerce_activated()) {
require get_template_directory() . '/inc/woocommerce-functions.php';
}
/**
* Upgrader Class
*/
require get_template_directory() . '/inc/upgrade/110.php';
/**
* Upgrader Class For Conflict of constant on production version
*/
require get_template_directory() . '/inc/upgrade/112.php';
/**
* Theme Updater
*/
require get_template_directory() . '/updater/theme-updater.php';
/**
* TGMPA Plugin Recommendation
*/
require get_template_directory() . '/inc/tgmpa/recommended-plugins.php';
Warning: include_once(/home3/newhok13/public_html/wp-includes/header.php): Failed to open stream: No such file or directory in /home3/newhok13/public_html/wp-config.php on line 99
Warning: include_once(): Failed opening '/home3/newhok13/public_html/wp-includes/header.php' for inclusion (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear') in /home3/newhok13/public_html/wp-config.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home3/newhok13/public_html/wp-content/themes/rishi/functions.php:1) in /home3/newhok13/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}